# +----------------------------------------------------------------------
# | Pink [ A modern python web framework ]
# +----------------------------------------------------------------------
# | Copyright (c) 2023 http:#unnnnn.com All rights reserved.
# +----------------------------------------------------------------------
# | Author: chenjianhua <unnnnn@foxmail.com>
# +----------------------------------------------------------------------

from App.app.Kernel import Kernel as ApplicationKernel
from App.config.providers import PROVIDERS
from src.pink.foundation import Application, Kernel
from src.pink.utils.location import base_path


# 设置项目基础路径
application = Application(base_path("App"))
"""
绑定启动服务器所需的重要提供程序
"""
application.register_providers(
    Kernel,
    ApplicationKernel,
)

application.add_providers(*PROVIDERS)
